package com.atguigu.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

@Data
public class User {
    @ExcelProperty(value = "用户id",index = 0)
    /**设置表头信息
     * 列名表头是"用户id"，对应第0列；
     */
    private int id;
    @ExcelProperty(value = "用户名",index = 1)
    private String name;
}
